package com.dc.business.datacollectbusiness.mapper;

import com.dc.business.datacollectbusiness.entity.CompanyUserRelationShip;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface CompanyUserRelationShipMapper {
    /**
     * 通过用户id查找公司
     */
    public List<CompanyUserRelationShip> getAllCompanyIdByUserid(int userid);

    /**
     * 添加关系
     */
    public boolean insertCompanyUserRelationShip(CompanyUserRelationShip companyUserRelationShip);

    /**
     * 通过userId删除
     */
    public boolean deleteCompanyUserRelationShipByuserID(int userId);
}
